﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PhoneApp1
{
    public class Level
    {

        public int MaxEnemiesNum { get; set; }
        public int NowEnemiesNum { get; set; }

        public Level(int max, int now)
        {
            this.MaxEnemiesNum = max;
            this.NowEnemiesNum = now;
        }
        /// <summary>
        /// 是否有下一个怪
        /// </summary>
        /// <returns></returns>
        public bool HasNextEnemy()
        {
            if (NowEnemiesNum > MaxEnemiesNum)
                return false;
            else
                NowEnemiesNum++;
            return true;
        }
    }
}
